package com.zuijin.vue2blog.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 图片表
 * </p>
 *
 * @author 醉瑾
 * @since 2022-04-24
 */
@TableName("picture")
@ApiModel(value = "Picture对象", description = "图片表")
public class Picture implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("图片id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("创建者")
    @TableField("uid")
    private Integer uid;

    @ApiModelProperty("图片链接")
    @TableField("url")
    private String url;

    @ApiModelProperty("图片来源")
    @TableField("source")
    private String source;

    @ApiModelProperty("拍摄于")
    @TableField("location")
    private String location;

    @ApiModelProperty("图片描述")
    @TableField("describe")
    private String describe;

    @ApiModelProperty("上传日期")
    @TableField("create_date")
    private Date createDate;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    @Override
    public String toString() {
        return "Picture{" +
        "id=" + id +
        ", uid=" + uid +
        ", url=" + url +
        ", source=" + source +
        ", location=" + location +
        ", describe=" + describe +
        ", createDate=" + createDate +
        "}";
    }
}
